﻿@model MinistryStandardPlatformEntity.LoginUsers

@{
    Layout = "~/Views/Shared/_CommonLayout.cshtml";
}
<style>
    tr td:nth-child(2n)
    {
        text-align: left;
    }

    tr td:nth-child(2n+1)
    {
        text-align: right;
    }

    td
    {
        vertical-align: middle;
        height:40px;
    }

    table
    {
        border-collapse: collapse;
    }
</style>
<script src="~/Scripts/jQuery.encoding.digests.sha1.js"></script>
<script src="~/Scripts/project/operationmanageusercreate.js"></script>
<div>
    <form action="/User/Create" method="post" id="usercreateform">
    <div >
    <table style="width:98%;">
        <tr>
            <td><label class="required">*</label>用户名：</td>
            <td>@Html.TextBoxFor(model => model.UserId, new { @style = "width: 100%;" })</td>
            <td><label class="required">*</label>性别：</td>
            <td>
                <select name="SexType" style = "width: 100%;">
                    <option value="男" selected="selected" >男</option>
                    <option value="女">女</option>
                </select>
            </td>
        </tr>
        <tr>
            <td><label class="required">*</label>登录密码：</td>
            <td>                
                <input type="password" style="vertical-align:middle;width:100%;" id="password" name="password"/>
            </td>
            <td><label class="required">*</label>重复密码：</td>
            <td>
                <input type="password" style="vertical-align:middle;width:100%;" id="repeatpassword" name="repeatpassword"/>
                @Html.HiddenFor(model => model.LoginPassword, new { @id = "LoginPassword" })
                @*<input type="hidden" id="LoginPassword" name="LoginPassword" />*@
            </td>
        </tr>
        <tr>
            <td>手机号：</td>
            <td>                
                @Html.TextBoxFor(model => model.telPhone, new { @style = "width: 100%;" })
            </td>
            <td>固定电话：</td>
            <td>
                @Html.TextBoxFor(model => model.RocPhone, new { @style = "width: 100%;" })
            </td>
        </tr>
        <tr>
            <td>真实姓名：</td>
            <td>                
                @Html.TextBoxFor(model => model.RealName, new { @style = "width: 100%;" })
            </td>
            <td><label class="required">*</label>所属单位：</td>
            <td>
                @*<input type="text" readonly="readonly" style="vertical-align:middle;" id="CustomerName" name="CustomerName" />
                <input type="hidden" style="vertical-align:middle;" name="CustomerID" id="CustomerID"/>*@
                @Html.TextBoxFor(model => model.CustomerName, new {@style="vertical-align:middle;",@readonly="readonly",@id="CustomerName" })
                @Html.HiddenFor(model => model.CustomerID, new { @id = "CustomerID" })
                <img id="selectParentUnit" src="~/Images/search.png" style="vertical-align:middle;" />
            </td>
        </tr>
        <tr>
            <td>状态：</td>
            <td >                
                <select name="UserState" style = "width: 100%;">
                    <option value="启用" selected="@(Model.userState=="启用")" >启用</option>
                    <option value="停用" selected="@(Model.userState=="停用")" >停用</option>
                </select>
            </td>
        </tr>
        <tr>
            <td>联系地址：</td>
            <td colspan="3">@Html.TextBoxFor(model=>model.address,new {@style="width:100%;"})</td>
        </tr>
        <tr>
            <td>备注：</td>
            <td colspan="3">
                <textarea name="Fmemo" rows="3" style="width:100%;resize:none;">@Model.FMemo</textarea>
            </td>
        </tr>
        <tr>
            <td colspan="4" style="text-align:center;">
                <input type="submit" value="确定" class="radius" id="submitBtn"/>
                <input type="button" value="取消" class="radius" id="cancelBtn" onclick="javascript: window.top.art.dialog.get('operationmanageusercreate').close();"/>
                <div style="height:30px;"><label class="alert" id="result">@ViewBag.Message</label></div>
            </td>
        </tr>
    </table>
        
    </div>

@*    <div style="text-align:center;margin-top:20px;">
        <input type="button" value="确定" class="radius" id="submitBtn"/>
        <input type="button" value="取消" class="radius" id="cancelBtn" onclick="javascript: window.top.art.dialog.get('operationmanageusercreate').close();"/>
        <div style="height:30px;"><label class="alert" id="result">@ViewBag.Message</label></div>
    </div>*@
    </form>
</div>
